package com.ty.bigevent.service;

import com.ty.bigevent.model.dto.UserRegisterRequest;
import com.ty.bigevent.model.entry.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.bigevent.utils.Result;

/**
* @author ong char
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2025-09-27 01:06:19
*/
public interface UserService extends IService<User> {


    User findByUsername(String username);

    void register(String username, String password);

    String login(String username, String password);

    void updateUser(User user);

    void updateUserAvatar(Integer userId,String avatarUrl);

    void updatePassword(Integer userId,String oldPassword, String newPassword);
}
